package com.lyf.design.learn.designmodel.chain.sample.archived;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/10
 * @VERSION 1.0
 * @DESC
 */
public class Chain {

    void exec(Person person){
        if(person instanceof Boss){
            System.out.println("ok..");
        }else{
            // exec handle
            exec(person);
        }
    }

}
